package com.ee.chat.api.service;

import com.ee.chat.common.bean.Result;

import javax.servlet.http.HttpServletRequest;

public interface ILoginService {
    /**
     * 登录注册
     * @param type
     * @param thirdId
     * @param name
     * @param icon
     * @param code
     * @return
     * @throws Exception
     */
    Result login(HttpServletRequest request, Integer type, String thirdId, String name, String icon, String code, String inviteCode, String channelCode, String channelCode2, String extra) throws Exception;

    /**
     * 登出
     * @Author Shane
     * @Date 2019/7/25 0:18
     * @param
     * @return
     */
    Result logout(String token) throws Exception;

    /**
     * 批量注册IM
     * @Author Shane
     * @Date 2019/10/2814:38
     * @param
     * @return
     **/
    Result batchRegisterIM() throws Exception;

    Result getAuthInfo(Integer type, String code) throws Exception;

    Result updateUserInfo(String token, String icon, String name, Integer gender) throws Exception;
}
